package com.qiyang.lambda;

import java.util.function.*;

/**
 * Created on 2018/8/4.
 *
 * @author sehuaqi.
 * 描述：
 */
public class FunctionDemo {


    public static void main(String args[]) {
        //执行函数

        //断言函数接口
        Predicate<Integer> predicate = i -> i > 0;
        IntPredicate predicate2 = i -> i > 0;

        System.out.println(predicate.test(5));

//        IntConsumer
//        DoubleConsumer

        Consumer<String> consumer = s -> System.out.println("消费函数：" + s);
        consumer.accept("输入的内容");

    }

}
